export function saveStorage (key, info) {
  try {
    localStorage.setItem(key, JSON.stringify(info))
  } catch (error) {
    localStorage.setItem(key, info)
  }
}

export function getStorage (key) {
  try {
    return JSON.parse(localStorage.getItem(key))
  } catch (error) {
    return localStorage.getItem(key)
  }
}

export function removeStorage (key) {
  localStorage.removeItem(key)
}